package pl.easyshop.core.services;

import org.dozer.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import pl.easyshop.core.dao.common.DAORegistry;

/**
 * Base class for all core services.
 * 
 * @author Pawel Witkowski
 */
public abstract class AbstractBaseService {
	
	/** Registry of DAO instances. */
	@Autowired
	@Qualifier("hbDAORegistry")
	private DAORegistry daoRegistry;
	
	/** Dozer framework class mapper. */
	@Autowired
	private Mapper dozerMapper;

	/**
	 * Get daoFactory property value.
	 * @return the daoFactory
	 */
	public DAORegistry getDAORegistry() {
		return daoRegistry;
	}

	/**
	 * Get dozerMapper property value.
	 * @return the dozerMapper
	 */
	public Mapper getDozerMapper() {
		return dozerMapper;
	}

	/**
	 * Set dozerMapper property value.
	 * @param dozerMapper the dozerMapper to set
	 */
	public void setDozerMapper(Mapper dozerMapper) {
		this.dozerMapper = dozerMapper;
	}
	
}